package cn.ai.boot.config.PCF;

import java.util.Objects;

public class Pc0405MainKey {
    private String pipelineNumber;
    private String device;
    private String unit;
    private String pcmComponentPath;

    public String getPcmComponentPath() {
        return pcmComponentPath;
    }

    public void setPcmComponentPath(String pcmComponentPath) {
        this.pcmComponentPath = pcmComponentPath;
    }

    public Pc0405MainKey(String pipelineNumber, String device, String unit) {
        this.pipelineNumber = pipelineNumber;
        this.device = device;
        this.unit = unit;
    }

    // 必须重写 equals & hashCode
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Pc0405MainKey mainKey = (Pc0405MainKey) o;
        return Objects.equals(pipelineNumber, mainKey.pipelineNumber) &&
                Objects.equals(device, mainKey.device) &&
                Objects.equals(unit, mainKey.unit);
    }

    @Override
    public int hashCode() {
        return Objects.hash(pipelineNumber, device, unit);
    }


    public String getPipelineNumber() {
        return pipelineNumber;
    }

    public void setPipelineNumber(String pipelineNumber) {
        this.pipelineNumber = pipelineNumber;
    }

    public String getDevice() {
        return device;
    }

    public void setDevice(String device) {
        this.device = device;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }
}